import http from '../utils/http/http.js'

const login = (data) => {
    return http.post("/login", data);
};
const getUserList = (data) => {
    return http.get("/user/getUserList", data);
};
const saveUser = (data) => {
    return http.post("/user/save", data);
};
const delUser = (data) => {
    return http.del("/user/delete", data);
};
const getUserDetail = (data) => {
    return http.get("/user/detail", data);
};
const download = (data) => {
    return http.downloadFile("/user/getExcel", data);
}
const uploadExcel = (data) => {
    return http.post("/user/uploadExcel", data);
}
const updateUser = (data) => {
    return http.post("/user/update", data);
}
export default {
    login, getUserList, saveUser, delUser, getUserDetail,download,uploadExcel,updateUser
}